job RunFtoC(list inputs) {
  @{"./ftoc %d" % [(int)inputs[0]]};
}

void main(list args) {
  list my_servers = [["host"=>"localhost",
                      "user"=>"dummy",
                      "password"=>"dummypw"
                     ],
                     ["host"=>"localhost",
                      "user"=>"dummy2",
                      "password"=>"dummypw2"
                     ]];
  connect my_servers;
  
  list my_ints;
  int i;
  for (i = 0; i < 10; i = i + 1) {
    my_ints = my_ints + [[i*20]];
  }
	print ("Length = (%d)\n" % [length my_ints]);
  
  list my_files = ["ftoc"];
  
  list output;
  int conversion = push RunFtoC, my_files, my_ints, output;
  wait conversion;
  
  for (i = 0; i < length output; i = i + 1) {
    map out = (map)output[i];
    print ("F: %d\t C: %s" % [(int)(((list)my_ints[i])[0]), (string)(out["stdout"])]);
  }
	
}
